Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated fertilizer name for "ran out of fertilizer" message #38261

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

jkraybill
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Translated fertilizer name for ran-out-of-fertilizer message"

Purpose of change

Fixes #38255 to show the name of the fertilizer that ran out, instead of the item key.

Describe the solution

Added code to get the tname() of the item instead of using the item key.

After fix:

image

Describe alternatives you've considered

I wasn't sure about the "right way" to get a tname from an item ID, so there are probably other ways to do this in code.

Testing

Fertilized with small amounts of fertilizer before and after the fix.

Additional context

If there is a better way to get to a translated name from an item ID, please let me know.

src/activity_handlers.cpp Outdated Show resolved Hide resolved
Co-Authored-By: BevapDin <tho_ki@gmx.de>
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Translation I18n labels Feb 24, 2020
@ZhilkinSerg ZhilkinSerg merged commit 6cc80b3 into CleverRaven:master Feb 24, 2020
@jkraybill jkraybill deleted the 38255 branch March 1, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message "you have run out of fertilizer_liquid"
3 participants